package com.online.demo3.controller;

import com.online.commonutil.util.GlobalDefaultExceptionHandler;
import com.online.demo3.service.DemoService;
import com.online.demo3.service.FindAgentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Demo extends GlobalDefaultExceptionHandler {
    @Autowired
    FindAgentService findAgentService;
    @Autowired
    DemoService demoService;

    @PostMapping(value = "/hello")
    String hello() {
        int i = 1024/0;
        return "结束";
    }
}
